package com.biz.primus.ms.commodity.dao.repository.keywordConfig;

import com.biz.primus.base.enums.commodity.IStatus;
import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.commodity.dao.po.KeywordWeightConfig;

import java.util.List;

/**
 * Created by jiangnan on 2017/6/26.
 */
public interface KeywordConfigRepository extends CommonJpaRepository<KeywordWeightConfig, Long>, KeywordConfigDao {

    List<KeywordWeightConfig> findByDeleteFlagAndStatusOrderByUpdateTimestampDesc(Boolean deleteFlag, IStatus status);

    List<KeywordWeightConfig> findByDeleteFlagOrderByUpdateTimestampDesc(Boolean deleteFlag);
}
